var leftmenuHtml = '\
	<div class="subNav">\
				<div class="pic">\
					<a class="upload selfProfile" href="javascript:;"><img src="http://images.baihe.com/images/baihe_new/images/default_pictures/80_100/nopic_male.gif" width="80" height="100" alt="" /><span id="uploadPhoto" style="display:none">上传头像</span></a>\
					<div class="link">\
						<a class="lYellow" href="http://userinfo.baihe.com/UserBasicInfo.action">编辑资料</a>\
						<a class="LGray" href="http://auth.baihe.com/">认证</a>\
					</div>\
				</div>\
				<div class="menuCont skBg1">\
					 <div class="title"><a href="http://u.baihe.com/?str='+new Date().getTime()+'">我的百合</a></div>\
				</div>\
				<div class="menuCont skBg2">\
					 <div class="title"><a href="javascript:;">会员服务</a></div>\
					 <ul>\
					 	<li><a href="http://trade.baihe.com/myOrder?orderStatus=0"><span>·</span>我的订单</a></li>';
/*var xs11tValue = bzt_getCookie("xsllt");*/
/*switch(xs11tValue){
	case 'zcfh':
	case 'zcgi':
	case 'zchj':
	case 'zcik':*/
		leftmenuHtml +='<li><a href="http://product.baihe.com?source=mgtbhn1"><span>·</span>水晶会员</a></li>\
						<!--li><a href="http://act.baihe.com/2013/1127/index.php"><span>·</span>脱单秘籍</a></li-->\
						<li><a href="http://product.baihe.com/Vipsuper"><span>·</span>至尊会员</a></li>\
						<li><a href="http://product.baihe.com/Vipjsuper"><span>·</span>金至尊会员</a></li>\
						<li><a href="http://vip.baihe.com/" target="_blank"><span>·</span>线下猎婚</a></li>\
						<!--li><a href="http://product.baihe.com"><span>·</span>看信会员</a></li-->';
		/*break;
	case 'zcjl':
		leftmenuHtml +='<li><a href="http://product.baihe.com?source=mgtbhn1"><span>·</span>水晶会员</a></li>\
						<!--li><a href="http://product.baihe.com"><span>·</span>高级会员</a></li>\
						<li><a href="http://act.baihe.com/2013/1127/index.php"><span>·</span>脱单秘籍</a></li-->\
						<li><a href="http://product.baihe.com/Vipsuper"><span>·</span>至尊会员</a></li>\
						<li><a href="http://product.baihe.com/Vipjsuper"><span>·</span>金至尊会员</a></li>\
						<li><a href="http://vip.baihe.com/" target="_blank"><span>·</span>线下猎婚</a></li>';
		break;
	case 'zckm':
		leftmenuHtml +='<!--li><a href="http://product.baihe.com"><span>·</span>高级会员</a></li>\
						<li><a href="http://act.baihe.com/2013/1127/index.php"><span>·</span>脱单秘籍</a></li-->\
						<li><a href="http://product.baihe.com/Vipsuper"><span>·</span>至尊会员</a></li>\
						<li><a href="http://product.baihe.com/Vipjsuper"><span>·</span>金至尊会员</a></li>\
						<li><a href="http://vip.baihe.com/" target="_blank"><span>·</span>线下猎婚</a></li>';
		break;	
	default:
		leftmenuHtml +='<li><a href="http://product.baihe.com?source=mgtbhn1"><span>·</span>水晶会员</a></li>\
						<!--li><a href="http://product.baihe.com"><span>·</span>高级会员</a></li>\
						<li><a href="http://act.baihe.com/2013/1127/index.php"><span>·</span>脱单秘籍</a></li-->\
						<li><a href="http://product.baihe.com/Vipsuper"><span>·</span>至尊会员</a></li>\
						<li><a href="http://product.baihe.com/Vipjsuper"><span>·</span>金至尊会员</a></li>\
						<li><a target="_blank" href="http://vip.baihe.com/"><span>·</span>线下猎婚</a></li>\
						<!--li><a href="http://product.baihe.com"><span>·</span>看信会员</a></li-->\
						<li><a href="http://product.baihe.com/coin"><span>·</span>购买红豆</a></li>';
}*/
	leftmenuHtml +='	<li><a href="http://lovebox.baihe.com/focusstar.action"><span>·</span>焦点明星</a></li>\
						<li style="display:none" class="menuHYFF"><a href="http://market.baihe.com/action/loveboxIndex.do"><span>·</span>寻爱百宝箱</a></li>\
						<li style="display:none" class="menuHYFF"><a href="http://applove.baihe.com?source=mgtbhn1"><span>·</span>红娘牵线</a></li>';	

	leftmenuHtml +='	<li style="display:none" class="menuHYFF"><a href="http://product.baihe.com/flashmsg"><span>·</span>爱情速递</a></li>\
						<!--li style="display:none" class="menuHYFF"><a href="http://payment.baihe.com/product/lovecall/index.jsp"><span>·</span>爱情直呼</a></li-->\
					 </ul>\
					 <div class="more"><a class="downIcon" href="javascript:toggleMenu(\'menuHYFF\');">更多</a></div>\
				</div>\
				<div class="menuCont">\
					 <div class="title"><a href="javascript:;">百合帐户</a></div>\
					 <ul>\
					 	<li><a href="http://realswap.baihe.com/index.jsp?str='+new Date().getTime()+'"><span>·</span>实名认证</a></li>\
					 	<li><a href="http://my.baihe.com/matchintention"><span>·</span>择偶意向</a></li>\
					 	<li><a href="http://my.baihe.com/setting/settingMe"><span>·</span>帐号设置</a></li>\
					 	<!--li><a href="http://priv.baihe.com/PPSetting.action"><span>·</span>隐私保护</a></li-->\
						<li><a href="http://my.baihe.com/setting/settingPwd"><span>·</span>修改密码</a></li>\
						<li><a href="http://my.baihe.com/setting/settingblack"><span>·</span>黑名单</a></li>\
					 </ul>\
				</div>';
				/*<div class="menuCont">\
				 <div class="title"><a href="javascript:;">百合产品卡</a></div>\
				 <ul>\
				 	<li><a href="http://www.baihe.com/card"><span>·</span>产品卡开通</a></li>\
				 	<li><a href="http://market.baihe.com/view/product/jzz/index.jsp"><span>·</span>礼品卡<img src="http://images1.baihe.com/images/baihe_new/images/userNav/giftIcon.gif" width="18" height="18"></a></li>\
				 </ul>\
				</div>\ */
	leftmenuHtml +='<div class="leftAd"><iframe name="advert" width="108" height="200" frameborder="0" scrolling="no" src="http://bhtg.baihe.com/place_274.html"></iframe></div></div>';
				
document.write(/^user\.baihe\.com.*$/.test(document.location.hostname)?leftmenuHtml:'<div id="baihe_col1">'+leftmenuHtml+'</div>');
$(function(){
	$.getScript("http://u.baihe.com/menuInfo?time="+Math.round(Math.random()*10000),function(data){
if(leftMenuInfo&&leftMenuInfo["ylchService"]=="1"){
			$("#zhuiqiu3").show();
		}
	});
});
$.getScript("http://u.baihe.com/menuInfo?time="+Math.round(Math.random()*10000),function(data){
	if(leftMenuInfo.status){
		$('.selfProfile img').attr('src',leftMenuInfo.mainPhoto.replace('36_45','80_100'));
		$('.selfProfile').attr('href','http://profile1.baihe.com/?oppID='+leftMenuInfo.userID);
		if(leftMenuInfo.mainPhoto.indexOf('default')>0){
			$('#uploadPhoto').text('上传形象照');
			$('#uploadPhoto').click(function(){$('.selfProfile').attr('href','http://photograph.baihe.com/photograph/upload_manyphotos.jsp?userID='+leftMenuInfo.userID);});
		}else{
			$('#uploadPhoto').text('上传照片');
			$('#uploadPhoto').click(function(){$('.selfProfile').attr('href','http://photograph.baihe.com/photograph/myphoto.jsp?userID='+leftMenuInfo.userID);});
		}
		$('.selfProfile').mouseover(function(){$('#uploadPhoto').show();});
		$('.selfProfile').mouseout(function(){$('#uploadPhoto').hide();});
	}
});

function toggleMenu(className){
	$('.'+className).toggle();
	var targetLink = $('a',$('.'+className).parent().next());
	targetLink.attr('class') == 'downIcon'?targetLink.attr('class','upIcon')&&targetLink.html('收起'):
		targetLink.attr('class','downIcon')&&targetLink.html('更多');
}
